﻿<phone:PhoneApplicationPage 
	x:Class="HelloColumbusApplication.HomePage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:commands="clr-namespace:Columbus.Commands;assembly=Columbus" FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait" Orientation="Portrait"
	mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
	shell:SystemTray.IsVisible="True">
	<Grid ShowGridLines="True">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <TextBlock 
            HorizontalAlignment="Center" 
            Text="{Binding Message}" 
            Margin="15"
            Grid.Row="0"/>
        <StackPanel Grid.Row="1" Margin="10" VerticalAlignment="Center">
			<TextBlock 
				Text="Enter your name, then click 'Say hello' button" 
				Margin="15" />
            <TextBlock 
                TextWrapping="Wrap"
				Text="To see more interesting stuff: enter your name, then click phone start button, then click phone Back button. Your name will be restored." 
				Margin="15" />
            <TextBox 
				Text="{Binding Name, Mode=TwoWay}" />
			<Button 
				commands:Click.Command="{Binding Path=ShowGreetingPageCommand}" 
				Content="Say hello"></Button>
            <Button commands:Click.Command="{Binding Path=ShowMessageBoxCommand}"
                    Content="Ok/Cancel?"></Button>
            <Button commands:Click.Command="{Binding Path=ShowAppSettingsCommand}"
                    Content="App Settings" />
            <Button 
                commands:Click.Command="{Binding Path=ShowAboutDialogCommand}"
                Content="About"  />
        </StackPanel>
	</Grid>
</phone:PhoneApplicationPage>
